package 字节码文件.局部变量压栈指令;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO:
 * <P> Date: 2022/3/26:15:15
 * <P> Description:
 */

public class LoadAndStoreTest {

    /**
     * <P>Author ideaAdmin
     * <P>TODO: 1.局部变量压栈指令
     * <P>Date 15:25 2022/3/26
     **/
    public void load(int num, Object obj, long count, boolean flag, short[] arr) {
        System.out.println(num);
        System.out.println(obj);
        System.out.println(count);
        System.out.println(flag);
        System.out.println(arr);
    }

    /**
     * TODO: 2.常量入栈指令
     **/
    public void pushConstLdc() {
        int i = -1;
        int a = 5;
        int b = 6;
        int c = 127;
        int d = 127;
        int e = 32767;
        int f = 32768;

    }

    public void constLdc() {
        long a1 = 1;
        long a2 = 2;
        float b1 = 2;
        float b2 = 3;
        double c = 1;
        double d = 2;
        Object obj = null;
    }
    /**
        * TODO:出栈装入局部变量表
    **/
    public void store(int k, double d) {
        int m = k + 2;
        long l = 12;
        String str = "atguigu";
        float f = 10.0f;
        d = 10;
    }


}
